dot-CalcN function

Calculate nCount and nFeature