Updates counter scripts.
Split counter script into three.