Added ability to check table row counts for sync