sgen: fix bit counting in mword