Description:
The search_count() method returns the number of records matching the search domain. This method accepts a search domain as its arguments.
Syntax: Model.search_count(args) ? int
Eg: self.search_count([('product_tmpl_id', '=', record.product_tmpl_id.id),('active', '=', True), ])
This returns the set of records satisfying the domain conditions given as the arguments inside the model.