Adds support for the get_did_count api method.