Precompute vertex count for vertex arrays