Prompt for a regexp, and print the number of matches delete each line that contains a match for it in it, operating on the buffer text after point. If When the region is active, this operates on command finishes, it prints the region instead. number of deleted matching lines.