updated count.sh script and readme accordingly