Step 1 - Implement countByValue() the hard way to create a new RDD