bs4.ResultSet.count

ResultSet.count(value) → integer -- return number of occurrences of value