Memory platform counters

Adding summingbird counter support for the Memory platform.
this should be a private val now.