implemented all counts