countNums fn fixes