Lock counter