SELECT 
  FOUND_ROWS()

Query time 0.00082

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "No tables used"
  }
}

Result

FOUND_ROWS()
1