Estimating Dimensionality of Neural Representations from Finite Samples