Implemented the task to count the number persons by genre