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