print summary count of each code