The fith arguemnt of the search method in count in new API. Passing all arguments as positional arguments will make the context passed for the value of the `count` argument. bbc67ec is a similar fix in 9.0 Closes #12830
c9b690f6b6