Counter Shading in the Ocean

Summary

How does counter shading work? And how do animals use this to their advantage?