private int NumberOfEventsInCategory() { return context.Events.Where(x => x.CategoryId == categoryId).Count(); }