SELECT t1.Schedule, t1.Date, t1.Class, t1.Period, t1.[Count]
FROM SomeTable t1 INNER JOIN
(SELECT t2.Schedule, t2.Date, t2.Class, MAX(t2.[Count]) AS MaxCount
FROM SomeTable
GROUP BY t2.Schedule, t2.Date, t2.Class) x ON t1.Schedule = x.Schedule AND t1.Date = x.Date AND t1.Class = x.Class AND t1.[Count] = x.MaxCount