#!/usr/bin/env zsh lines=(${(f)"$(mu find 'maildir:/protonmail/Inbox AND flag:unread' 2>/dev/null)"}) printf '%d' "${#lines}"