+
+(defun notmuch-hello-mode-hook-counter ()
+ "Count how many times `notmuch-hello-mode-hook' is called.
+Increments `notmuch-hello-mode-hook-counter' variable value if it
+is bound, otherwise does nothing."
+ (if (boundp 'notmuch-hello-mode-hook-counter)
+ (setq notmuch-hello-mode-hook-counter
+ (1+ notmuch-hello-mode-hook-counter))))
+(add-hook 'notmuch-hello-mode-hook 'notmuch-hello-mode-hook-counter)