fixed small bug in own parser, added two more checks
changed import of Counter