This isn't quite right, given that one directive can be a prefix of another: a `#foobar` directive will count as a `#foo` directive.

Also, a ##foo comment counts.

Also #print "#foo" counts.

/me wants a real AST