In zsh there are so called global aliases, i.e I can define
alias -g C='| wc -l' and when typing
ls -l C it will be expanded to
ls -l | wc -l.
I think something like this would be a good feature for ion. One could name it
abbrev and above definition could look like
abbrev L = '| wc -l