api: export card labels and count, renames stats command

renammed to "threads", stats was too much generic