functions to count number of new and terminated tracks