private function getTableCounts()
{
$schema = new Schema();
$counts = [];
$conn = $this->getConnection();
foreach ($schema->getTables() as $table) {
$count = $conn->query('SELECT COUNT(*) FROM ' . $table->getName());
$count = (int) $count->fetchColumn(0);
$counts[$table->getName()] = $count;
}
return $counts;
}