Lock counter



<!---
@huboard:{"order":115.125,"milestone_order":136.5,"custom_state":""}
-->

Add standard comment block at the top of this file.

I know these methods are copied from somewhere else but thats denoted below and at some point we may add our own stuff to this file.