Convert bin and count 1 functions working, tests pass