You can counter a Flash card by casting a counterspell in response. When a Flash card is cast, it goes on the Stack, and each player gets a chance to respond. If you respond with a counterspell, your counterspell will go on top of the Stack and resolve first, countering the Flash card.