Add number of methods to OatClass.

And use it for checks when reading oat file data.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 148412019
Change-Id: I3a2433f94397107a2ce3c198d22e660871c505a8
5 files changed