public int Count(Func <T, bool> predicate) { return(LeLeContext.Set <T>().Where(predicate).Count()); }