changed to problem to count possibilites

still need to think about input5