internal static int GetCountOfEvents() { using (var context = new DataHandler()) { return context.Events.Count(); } } }