Re-add 1.4 counter code. Make counters in 2.0 backwards compatible