ARB prog parser: Set NumAttributes based on the number of attribs read