Run count once outside of loop.