#271 genre count query converted to use ORM