Counting the instances of an element: