Rudin’s orthogonality problem and the Nevanlinna counting function