count duplicate iterm
add gitignore
add test case for calculation