changed len() to .distinct().count() for Classes in dashboard stats and added distinct() for the flag counters in that section