Number of Solutions of a System of Linear Equations