The parameter in search() is redundant with method search_count(), and was making the calls less readable. The method _search() is aimed at always returning a Query object. The method can therefore never return an integer, hence the removal of the parameter. This does not actually remove any functionality from the method; counting result is simply given by using it differently. Part-of: odoo/odoo#112126