add convenience catalogue.count() method and finish learn/target catalog
division, magnitude completeness correction and weighting.