initial basic counter script in bash