The 'count' of the a category's skills works - except when the skill list is empty.  Something is slightly off with the query.  However, except for that case, the results are correct.