Removed unnecessary count variable.