Add calls to retrieve class initialization stats via the allocation count mechanism. For bug 2461549.