How does an anemometer measure the weather element?

wind velocity