Using inclusive decays of the J/ψ, a precise determination of the number of J/ψ events collected with the BESIII detector is performed. For the two data sets taken in 2009 and 2012, the numbers of J/ψ events are recalculated to be (224.0±1.3)×106 and (1088.5±4.4)×106 respectively, which are in good agreement with the previous measurements. For the J/ψ sample taken in 2017--2019, the number of events is determined to be (8774.0±39.4)×106. The total number of J/ψ events collected with the BESIII detector is determined to be (10087±44)×106, where the uncertainty is dominated by systematic effects and the statistical uncertainty is negligible.