DQL: Opposite of func: has(field)

Assuming you gave every node a type:

{
  q(func: has(dgraph.type)) @filter(NOT has(name)) {
    count(uid)
  }
}

Note however, that this will be quite slow.