public int CountPostsForTag(string tag)
 {
     return(MyDbSet.Count(p => p.Tags.Any(t => t.Name == tag)));
 }
 public int CountPostsForCategory(string category)
 {
     return(MyDbSet.Count(p => p.Category.Name == category));
 }