Do not declare a counter as unsigned when it is not needed