Fix fatal by making getCount() non-static.

Change-Id: I770c29c961c9a83158976cfb4233955d84b68c9c