allowed counter to take a samfile or error list