Script to fetch channel stats