Fix marshaling of counters

Looks like it's just a missing case, if there's any specific reason not to include that, let me know!