Fixed counting issue

Needed an = condition; added