bug fix of counting all samples count at LDA