Your are wrong: this is not the the proba that a document (of that class ) contains the word (nor contains that many words (count)), but the probability that this word appears in that class, which can be estimated (MLE) by number of occurrences of (in ) divided by the total number of words in class .
For instance is estimated by , by .
For instance is estimated by , by .