A variational Bayes model for count data learning and classification