Changed count to be the max number of results instead of the number investigated.