[sr-dev] git:master: core: bit conting and testing functions