What is the primary function of echo sounder?

A
Determine the wind speed
B
Determine the depth of water
C
Determine course of ship
D
Determine the temperature of the atmosphere
E
Determine the position of ship