Counts all occurrences of elem in range.
The range of values to count in.
Number of occurrences of elem in range.
See Implementation
Counts all occurrences of elem in range.