how to count entries with multiple variables?

how to count entries with multiple variables?

hi!

right now works the next code

res  =  zayavki_form  [sold_result.contains("0.1")];
count = res.sold_result.getall().size();
if (count  >  0)
{
    alert "Alert";
    cancel submit;
}


this code works fine. it counts all entries from  zayavki_form which contains "0.1" in sold_result.

how can i count number of entries which in same time contains
"0.1" in sold_result AND "zero" in field_A ?