Removed unused count variable