ziafazal/api-exclude-unenrolled-from-counts:exclude un-enrolled users from course metrics/counts

@mattdrayer excluding un-enrolled users from course metrics/counts