Complete bitwise solution counter. Needs cutting up