implemented the count_locker_by_type
remove trailing space
make private methods private