Answering my own question: for some reason, the number of elements in a Set is called “length”:
julia> length(S) 4