Help with element count

i have a problem here, i need to scrape circled thing on screen. results should be like, Lose: 6 and Win: 2 as you can see there are 6 red squares (lose) and 2 green (win). so i just need to count elements selected.
how i should set up scraper?

thanks

Url: Josef Grill v Jan Jablonovsky - BetsAPI

@prronoz Hi, to select the rows of the 'Head to Head' table you can use the following selector: .card-header:has(h3.card-title:contains("Head to Head")) + table tr

Afterward, you can extract the desired elements by your preference based on it's order in the HTML.

Example:

{"_id":"betsapi-com","startUrl":["https://betsapi.com/rh/5273185/Josef-Grill-vs-Jan-Jablonovsky"],"selectors":[{"delay":0,"id":"wrapper","multiple":true,"parentSelectors":["_root"],"selector":".card-header:has(h3.card-title:contains(\"Head to Head\")) + table tr","type":"SelectorElement"},{"delay":0,"id":"badge","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"td[class*=\"badge\"]","type":"SelectorText"},{"delay":0,"id":"result","multiple":false,"parentSelectors":["wrapper"],"regex":"","selector":"td:nth-of-type(5) a","type":"SelectorText"}],"websiteStateSetup":{"enabled":false,"performWhenNotFoundSelector":"","actions":[]}}