Counting the Number of Values in a Dimension