public Dictionary <string, int> GetByClasses() { using (RepoLock.ReaderLock()) { if (IsCached) { return(Classes.GetIndexes().ToDictionary(a => a, a => Classes.GetMultiple(a).Count)); } return(Table.GroupBy(a => a.Class).ToDictionary(a => a.Key, a => a.Count())); } }