fixed bug in ball tree wcount