Fix: Counter in math indexing script

The couter that assigns subsequent equations numbers was
not increased. Therefore all equations got the number 0.

Change-Id: If6062570dde3d1145d716f7117dd9345682e34c9