function nrf=getnrf(f)
vals=getvalues(f);
nrf=size(vals,1);