Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.
Users reporting for no reason may be locked out.
var classId = 1;
var count = sim.Session.Entities.Where(e => e.Car.Class.Id == classId).Count();
// Group entities by class ID
var groups = sim.Session.Entities.GroupBy(e => e.Car.Class.Id);
// For each group (= class) get the ID and number of drivers
foreach (var group in groups)
{
var classId = group.Key;
var driverCount = group.Count();
}