 
     inboxNotebook.notes.length
 
-  _updateReviewEvernoteTask: ({count}) ->
+  _countTextExpanderSuggestions: ->
+    TextExpander = Application('TextExpander')
+
+    suggestedSnippets = @_findByName(
+      name: 'Suggested Snippets'
+      source: TextExpander.groups
+      multipleResultsMessage: (names) ->
+        "Got more than one 'Suggested Snippets' TextExpander group!
+         Matching group names were : [#{names}]."
+    )
+
+    # November 16, 2015 MRF
+    # In playing around with the TextExpander group, the way I'm accessing snippets didn't
+    # seem quite right. This does appear to give the correct number but it may be by
+    # coincidence. Please improve if it is necessary and you can.
+    suggestedSnippets.snippets.length
+
+  _updateOmniFocusTask: ({taskBasename, count}) ->
     OmniFocus = Application('OmniFocus')
 
     routines = @_findByName(

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

         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()
