public virtual int CountOf(TGroup group) { return(RealObject.Count(g => g.Group.GetType() == typeof(TGroup))); }