Memory platform counters

Adding summingbird counter support for the Memory platform.
Do we want to use `putIfAbsent` here to handle a potential race?