How to determine application's method count?

android, java

Solution

I use

cat build/dex/debug/classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'

I get `55176`. 64k limit is coming :D

Problem

I'm encountering issues with my application having too many methods. In the last post in the below link, a poster posts the method count for his application (broken down by package). I unable to find how I can get this information for my application, any suggestions? https://code.google.com/p/android/issues/detail?id=20814

Original source