fixed detector count and aggregation of detector ids
added tests to verify that detector_count is giving the right value

long test for alameda gives 222, and shorter test for fresno gives 16