Reimplement how we count the number of total events

Before we used a trigger to increment/decrement the total events.
Rails doesn't really handle triggers well so instead of fighting
rails we reimplemented the count.