WordPress: Custom Taxonomy Count all posts

I remembered some strange behaviour, using two custom taxonomies for my custom post type. The posts count in the taxonomy administration page was wrong since I created it. The codex explains why that happens [1]:

[…] the built-in _update_post_term_count() function will be used to count only published posts associated with that term, otherwise _update_generic_term_count() will be used instead, that does no such checking. […]

So using the alternative built in counting methods works fine.

[1] http://codex.wordpress.org/Function_Reference/register_taxonomy