Count rows in subform based on a criteria

Count rows in subform based on a criteria

Hi there,

If I use the following script:

count = 0;
for each line in Subform
{
 count = count+1;
}
input.count_field = count;

How can I set a criteria to only count the lines in the subform that have a specific field?