Please be aware of the Forum Rules of Conduct.
Well, many realms have a single duchy, so you need to exclude them from your calculations.