Counter functions updated for lock structures