Add total tracks to metadata