fix Model.count