Mechanical density meter for liquid media