To print counts , simply print the number of times n was added at index corresponding to every element
for ( $ i = 0 ; $ i < $ n ; $ i ++ ) echo $ i + 1 , " ▁ - > ▁ " , ( int ) ( $ arr [ $ i ] / $ n ) , " STRNEWLINE " ; }