Anemometer is an instrument used to