A small AppleScript that returns the number of items in the Things logbook