* Added flag to check whether the pending entity count per category
  should be calculated.