package org.boris.expr.function.excel;
import org.boris.expr.Expr;
import org.boris.expr.ExprDouble;
import org.boris.expr.ExprException;
import org.boris.expr.ExprNumber;
import org.boris.expr.function.SimpleDatabaseFunction;
public class DCOUNT extends SimpleDatabaseFunction
{
protected Expr evaluateMatches(Expr[] matches) throws ExprException {
int count = 0;
for (Expr m : matches) {
if (m instanceof ExprNumber)
count++;
}
return new ExprDouble(count);
}
}