Nonparametric Bayesian Dictionary Learning and Count and Mixture Modeling