user counter added and functional