Added count variable to the delete function