Added count variable