Use exrex.count() to know how many strings the regex generates
exrex uses generators, so this saves memory as we don't have to store
the whole list of results anymore.
While at it refactor things a little bit so to pass the number of
elements to the crackpop() function too.