Answer
About 30 partitions. In review, anything from 20 to 45 counts as right.
The worked estimate
You need 300 ÷ 10 = 30 consumers, and within a consumer group each partition is read by at most one consumer, so the topic needs at least 30 partitions. Add headroom, because adding partitions later moves keys to other partitions.
Numbers: Numbers to know.