FOR count variable must be a scalar variable: <name>
The count variable of a For statement must be a scalar variable. The variable cannot be an array or list variable, or an element of an array or list. Its type cannot be a user-defined type or a class; and it cannot be a member of a user-defined type or of a class. It cannot be a property, a function, or a constant.
Change the For count variable to a scalar variable.