rename generic params in Memo
countFactors