Initial implementation of counters.  Need to look at changing the counting implementation internally to avoid read/write locks.