Make GetNumElements callable from init().