Memory platform counters

Adding summingbird counter support for the Memory platform.
addAndGet returns a long but I need to return Unit in this function. Is there a nicer way to do this?