method implemented for showing counts on a chart