Added accumulation of topic count