Determination of the number of J/ψ events with inclusive J/ψ decays