Spam detector using Bayesian analysis of word counts