Patch new getCount method