Implemented WordCount.getCountsArray