Use a simplier serializer and do the course counts as a single aggregate...

... query
I did a search in Apros and I did not find any other consumers of this API call except for the one. I could add an optional parameter to specify which serializer to use....