Fixed counting issue, always off by one