docs for custom_counter