count numbers through loop