SELECT 
  COUNT(*) 
FROM 
  access_restriction 
WHERE 
  type = 'd' 
  AND status = 'A'

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "0.35"
    },
    "table": {
      "table_name": "access_restriction",
      "access_type": "ref",
      "possible_keys": [
        "type"
      ],
      "key": "type",
      "used_key_parts": [
        "type"
      ],
      "key_length": "9",
      "ref": [
        "const"
      ],
      "rows_examined_per_scan": 1,
      "rows_produced_per_join": 0,
      "filtered": "10.00",
      "cost_info": {
        "read_cost": "0.25",
        "eval_cost": "0.01",
        "prefix_cost": "0.35",
        "data_read_per_join": "31"
      },
      "used_columns": [
        "type",
        "status"
      ],
      "attached_condition": "(`goimagine`.`access_restriction`.`status` = 'A')"
    }
  }
}

Result

COUNT(*)
0