modified getBeaconNewsCnt function