Let A be a subvariety of affine space A n whose irreducible components are d-dimensional linear or affine subspaces of A n . Denote by D( A) ⊂ N n the set of exponents of standard monomials of A. We show that the combinatorial object D( A) reflects the geometry of A in a very direct way. More precisely, we define a d-plane in N n as being a set γ + j∈ J Ne j , where # J = d and γ j = 0 for all j ∈ J . We call the d-plane thus defined to be parallel to j∈ J Ne j . We show that the number of d-planes in D( A) equals the number of components of A. This generalises a classical result, the finiteness algorithm, which holds in the case d = 0. In addition to that, we determine the number of all d-planes in D( A) parallel to j∈ J Ne j , for all J . Furthermore, we describe D( A) in terms of the standard sets of the intersections A ∩ {X 1 = λ}, where λ runs through A 1 .