Check whether last element in the list content the value if contain , raise a flag and increment count
if ( temp . data == search ) : NEW_LINE INDENT count = count + 1 NEW_LINE flag = 1 NEW_LINE DEDENT