Just because they're registered doesn't mean that they're flying or even at an airport. Perhaps the database includes older registrations for aircraft that may have been scrapped. I don't think we have 31,000,000 registered. Check out
www.aopa.org
They might have some good stats.
Now where's my warm inner glow dammit?