Returns the most frequent element, or null if the receiver is empty.
When several elements share the highest count, the one encountered first wins.