added lda counting (still in seperate functions and not yet callable)