-class UpdateReviewEvernoteTask
+class UpdateFocusTasks
   _findByName: ({name, source, multipleResultsMessage}) ->
     @_findBy(
       source: source


    inboxNotebook.notes.length

  _updateReviewEvernoteTask: ({count}) ->
    OmniFocus = Application('OmniFocus')

    routines = @_findByName(

         Matching project names were : [#{names}]."
    )

    taskBasename = 'Process TextExpander suggestions'
    task = @_findBy(
      query:
        completed: false
        name:
          _beginsWith: taskBasename
      source: daily.flattenedTasks
      multipleResultsMessage: (names) ->
        "Got more than one #{taskBasename} task! There should only be one.
         Matching task names were : [#{names}]."
    )

    task.name = "#{taskBasename} (#{count})"

  run: ->
    @_updateOmniFocusTask(
      taskBasename: 'Process TextExpander suggestions'
      count: @_countNotesInInbox()
    )
    @_updateOmniFocusTask(
      taskBasename: 'Process Evernote inbox'
      count: @_countTextExpanderSuggestions()
    )

new UpdateFocusTasks().run()
