added count check for TPG table in monitor