JSON/q

A JSON-based data access specification

Arguments

[
  [
    2, 
    2, 
    3, 
    5, 
    5
  ]
]

Query

{
  "distinct": {
    "as": "n", 
    "from": "args[0]", 
    "select": "count(n)"
  }
}

Results

3