I think he just realized that since the computer was looking for 238 animals but wasn’t finding Grant and the kids that it must only be looking for 238 animals.
This happens much later in the book because all of those systems are down until Grant actually makes it back to the lodge with the kids.