Turns out half my old formulas were just dynamic arrays in disguise, written the long way.
The syntax for counting the number of unique values from a list of a column using the array formula is as follows: =SUM(IF(COUNTIF(<first cell from which you count the number of unique values>:<last ...