added code in count possible decoding problem