Added method to return names with word counts