added count function to return subscribed devices count without authentication