Question: can you counterspell a beholder?
Answer: A beholder's eye beams are magical effects and cancelled out by things like anti-magic zones such as the beholder's own main eye. They are not spells and cannot be countered or turned as spells.