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)×10^6 and (1088.5±4.4)×10^6 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)×10^6. The total number of J/ψ events collected with the BESIII detector is determined to be (10087±44)×10^6, where the uncertainty is dominated by systematic effects and the statistical uncertainty is negligible. Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. Article funded by SCOAP3 and published under licence by Chinese Physical Society and the Institute of High Energy Physics of the Chinese Academy of Science and the Institute of Modern Physics of the Chinese Academy of Sciences and IOP Publishing Ltd.