<?php
require_once __DIR__ . '/../includes/db.php';
header('Content-Type: application/json; charset=utf-8');

$r = $conn->query("SELECT COUNT(*) c FROM subscribers")->fetch_assoc();
echo json_encode(["ok"=>true, "subscribers"=>(int)$r["c"]], JSON_UNESCAPED_UNICODE);