Count the number of elements in a list

Hi there,

Can someone please tell me how (using Notes Formula) I can count the number of particular elements in a list? I have a list in a view of numbers, and some blank fields, and I want to see how many documents in that list are set to 0.

Any help appreciated!

Thanks,

Alex

Subject: Count the number of elements in a list

elementToFind := 0;

counter := 0;

@For(n := 1; n <= @Elements(listName); n := n + 1;

@If( listName[n] = elementToFind;

counter := counter + 1;“”));

counter