Created by: flishwang
so that I can count the numbers of specific elements in each sample in a lodTensor.