The pattern counting is something I'm especially stoked about. I was actually very surprised to see that this feature isn't more common on grep-like tools (outside of bioinformatics as well). I've had this problem for years and I end up writing bespoke tools that do some variation of it.