rejigger counter in css for equations