The Bronze Age of display handling
Typing your display expression into a tiny field
To add these to a display expression, you would normally open the Text Inspector or the Get Info pop-over for the note’s prototype and then type in the new expression. For example, to show the name followed by the descendant count, I could use invoke the Get Info popover (⌥⌘I) and type in the following:
$Name + (if($ChildCount){" (" + $DescendantCount + ")"})