Added more logic for loops
to start over with entry of "next"
to not count blank entries.