   register 'added',
     update: (done) ->
       git._status (err, statuses) ->
-        statuses = _filter_statuses_by_desc statuses, 'added'
+        statuses = _filter_statuses_by_state statuses, 'added'
         count = _.where(statuses, {staged: true}).length
         done err, count

      git._aheadBehind (err, aheadBehind) ->
        done err, aheadBehind?.behind

  # Returns an array of objects with 'path', 'code', 'staged', 'desc'
  #
  # This command *must* be passed through a formatter before its displayed
  register '_status',

  register 'modified',
    update: (done) ->
      git._status (err, statuses) ->
        count = _filter_statuses_by_state(statuses, 'modified').length
        done err, count

  # Get the number of deleted files
