Update compare.php

Modify get_expected_count to correctly match frequencies in JSON object