prepare($sql); $stmt->execute([$meId]); $total = (int)$stmt->fetchColumn(); json_response(['total' => $total]);