Dynamic Trash Icon

How can I check Trash if there is something in it, or not?
I found this but I feel it's overkill to just check whether an app or folder (Trash in this case) has content or not.

Maybe someone knows a better trick?

Imprint | Privacy Policy