MDL-38128 mod_assign: Fixing count teams

We should restrict the groups to the activity active group.
MDL-38128 mod_assign: count_submissions_with_status