change count to dimensionality