code: def count_ruptures(self):
          
          return (len(self.get_annual_occurrence_rates()) *
                  len(self.nodal_plane_distribution.data) *
                  len(self.hypocenter_distribution.data))
docs: See
          :meth:`openquake.hazardlib.source.base.BaseSeismicSource.count_ruptures`
          for description of parameters and return value.