I'd probably use `Xapian::termcount` as the type here.  The collection frequency is sort of a count of terms * documents, but we use `Xapian::termcount` for collection frequencies elsewhere (including in the public API).