title: How to increment a record in Firebase?
body: <p>I have a Firebase record "searches: 0" for each user. On some event, I'd like to add 1 to what the current count is. I've gotten this far, but for some reason, it's not working:</p>
  
  <pre><code>du.fbAddSearchCount = function() {
      var usr = new Firebase(firebase_url + "/users/" + user_uid);
  
      usr.on("value", function(snapshot) {
          user = snapshot.val();
  
         var usersRef = ref.child("users");
  
         var fbUser = usersRef.child(user_uid);
         fbUser.update( {
             searches: user.searches + 1
         });
      }
  }
  </code></pre>
  
  <p>Any help to get this working?</p>
  
  <p>Thank you.</p>