Cache size of PassVector to speed up getNumContainedPasses().