Fix: wrong parameter name in getWordcount method