Update compare.php

Modify get_expected_count function