No counting in bash script