number of cosine waves in DCT
N orthogonal basis vectors can completely describe a point in N dimensional space.  Same for N * N orthogonal vectors and N * N samples describing an N*N dimensional space.  

A DCT matrix is constructed from an orthonormal set of basis vectors.