Commit based on blog post! Fixed couting