Added opt_count tests.