:: Int -> IO a -> IO [a] package:Cabal-syntax

count n p parses n occurrences of p. If n is smaller or equal to zero, the parser equals to return []. Returns a list of n values returned by p.