def heading_count(phrase,char='~'):

     """Returns the number of negating prefixes in <phrase> and the <phrase> shorn of prefixes."""
     count = 0
     for x in phrase:
          if x  != char:
               break
          count+=1
     return count,phrase[count:]