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