[java] Java, How to get number of messages in a topic in apache kafka