function n=getn(psi,f)
Input:
Output:
Modify getn() to accept a vector of fillings as above and to compute the appropriate sum to form the density.