minor tweak of countnz & count + some cosmetic changes in reduce.jl

countnz(a::AbstractArray) is not needed (which was implemented in the same way as countnz(itr))
countnz specialized on arrays
Merge pull request #6999 from lindahua/dh/reorg2

minor tweak of countnz & count + some cosmetic changes in reduce.jl