Term count not updating

The count column of the site terms table is not updating properly. The value of the column is zero, even if there is multiple posts in the category.

Now it's impossible to know, which of the categories are active.