Add log command

Add a log command. This calls the 'log-list-last-count' API. The result
is parsed into a list of dicts.