(glQueryCounter id target) → any id : exact-nonnegative-integer? target : exact-integer?
See the glQueryCounter manpage.