Message Oracle PCB-00234 - FOR variable string is invalid type

ERRORFOR variable string is invalid type
CAUSEThe count variable in a FOR clause has the wrong datatype. The datatype must be NUMBER or LONG (or be compatible with NUMBER or LONG).
ACTIONCheck the declaration and check that the count variable has a datatype of NUMBER or LONG (or a compatible Oracle or host-language datatype).