Implement counter submission from the dog cli

Also add a rake lint target.