weight count bug fix getFeatureCounts