implemented bin count
Merge branch 'feature-binselect' into develop