Memory platform counters

Adding summingbird counter support for the Memory platform.
It's a wrapper class around a mutable set (MutableSetSynchronizedWrapper) which has the isEmpty method. I can use the nonEmpty there on the mutable.Set collection though.