function (callback) {
     ResourceAssociation.count({where: {
         resourceId: resource.id,
         userId: user.id
     }}).then(function (count) {
         callback(null, count);
     });
 },
 function countUserResourceAssociations(callback) {
     ResourceAssociation.count({where: {
         resourceId: data.resourceId,
         userId: data.userId
     }}).then(function (count) {
         callback(null, count);
     });
 },