implementation number count and format print program