Seems like you would reset the count after the last element was sent out.
public AnotherClass next() {
if(count == collection.size()){
throw new NoSuchElementException();
}
if(count == collection.size()-1) {
// last element being sent out.
count = 0;
return collection[collection.size()-1];
}
return collection[count];
}