<?php
require 'vendor/autoload.php';
require 'config.php';
$db = App\Database\Database::getInstance();
try {
    $stmt = $db->query('SELECT COUNT(*) FROM categories');
    $count = $stmt->fetchColumn();
    echo "Categories: $count\n";
    $stmt = $db->query('SELECT COUNT(*) FROM items');
    $count = $stmt->fetchColumn();
    echo "Items: $count\n";
} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
?>