Can sum only calculate the value of count

You can sum without using count():

{
  var(func: type(Person)){
    v as age
  }
  
  x(){
    sum(val(v))
  }
}