Corrected a few bugs in the examples for counters

A few imports and arguments were wrong. Have corrected them.