Implemented count_ruptures method

See https://bugs.launchpad.net/oq-hazardlib/+bug/1272192 for the details