SELECT 
  FOUND_ROWS()

Query time 0.00009

JSON explain

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

Result

FOUND_ROWS()
1