test_phase: count method definitions