add sanity check for update category post counts method