Added ability to count matched strings by given pattern.
Merge pull request #6 from atykhonov/master

Added ability to count matched strings by given pattern.