def document_frequencies(self, hashes):
result = {}<EOL>for (k, v) in self.client.get(HASH_FREQUENCY_TABLE,<EOL>*[(h,) for h in hashes]):<EOL><INDENT>if v is None:<EOL><INDENT>v = <NUM_LIT:0><EOL><DEDENT>result[k[<NUM_LIT:0>]] = v<EOL><DEDENT>return result<EOL>
Get document frequencies for a list of hashes.

        This will return all zeros unless the index was written with
        `hash_frequencies` set.  If :data:`DOCUMENT_HASH_KEY` is
        included in `hashes`, that value will be returned with the
        total number of documents indexed.  If you are looking for
        documents with that hash, pass
        :data:`DOCUMENT_HASH_KEY_REPLACEMENT` instead.

        :param hashes: hashes to query
        :paramtype hashes: list of :class:`int`
        :return: map from hash to document frequency