functions: add _update_post_term_count to fix term counts on custom taxonomies