There is probably error in the docs. According to docs there should be “reply_count” attribute on tweet object. But this attribute is missing on tweet object when requesting tweets using some of the Twitter API endpoints.
This is a mistake in the documentation - it should be clarified that the reply_count and quote_count fields are only available from the premium and enterprise API endpoints. We will get this fixed. Thank you.
reply_count
quote_count