added code for finding number of strings with no consecutive 1's