When converting object to grease pencil from mesh, the material counters need to be set to the the value that matches `GreasePencil::material_array_num` to avoid index issues in adding grease pencil materials downstream. Pull Request: https://projects.blender.org/blender/blender/pulls/133038