def get_unique_counter_from_url(sp):
 pos = sp.rfind('%23')
 if (pos != (-1)):
  return int(sp[(pos + 3):])
 else:
  return None

def get_unique_counter_from_url ( sp ) : pos = sp . rfind ( '%23' ) if ( pos != ( - 1 ) ) : return int ( sp [ ( pos + 3 ) : ] ) else : return None
extract the unique counter from the url if it has one .