I am able to count nodes by property using apoc, with this query
CALL apoc.nodes.group([\'Package\'],[\'Repository\']) yield nodes return nodes