. "I realised that \\number was an existing command, but I thought that if I redefined it within the \\newenvironment, it would not cause any problems (as the scope would be limited)." . . .