bit counting bugfix