added attribute value counting
Fix attribute entropy