added the counter for tv program