--- title: "Get Live Count" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/cloud-scale/data-streams/get-live-count/ description: "This page describes the method to retrieve the number of active subscribers connected to a Data Streams channel in your Java application with sample code snippets." last_updated: 2026-07-07T05:22:22Z service: Cloud Scale type: general related_links: - name: "Data Streams" url: /en/cloud-scale/help/data-streams/introduction --- # Get Live Count [Catalyst Data Streams](https://docs.catalyst.zoho.com/en/cloud-scale/help/data-streams/introduction/) allows you to track the number of active subscribers currently connected to a specific channel. This is useful for monitoring channel activity and implementing conditional logic based on subscriber presence. You can retrieve the live subscriber count by passing the channel ID to the `getLiveCount()` method. #### Sample Code Snippet **Package Imports** ```java import com.zc.component.datastream.ZCDatastream; import com.zc.component.datastream.beans.ZCChannelLiveCountResponse; ``` ```java //Create a Data Streams instance ZCDatastream datastream = ZCDatastream.getInstance(); //Get the live subscriber count for a channel ZCChannelLiveCountResponse liveCount = datastream.getLiveCount("CHANNEL_ID"); ```