add POD for methods
refactor count method
add tests
edit Changes