title: programmatically find kafka topic size
body: <p>I am new to Kafka. I have created a producer using java and sending some messages to a topic. Is there a way to programmatically find the number of messages in a particular topic.</p>
  
  <p>Please share your thoughts.</p>