an attempt at creating a function for counting # of track elements for a given track