UserSchema.pre "save", function(next) {
var self = this;
UrlNameCounter.findOneAndUpdate({username: this.username}, {$inc: {count: 1}}, {upsert: yes},
function(err, counter) {
if (counter.count > 1) {
self.username = self.username + "-" + counter.count;
}
})
}