Tri counter now works