Updated the demo to use the new counters.