Optimize online count and broadcast methods