A 58-year-old man with chronic liver disease secondary to hepatitis C presents with increasing abdominal distension. Examination shows shifting dullness. He is haemodynamically stable. According to cirrhosis management guidelines, which investigation is most important at the time of diagnostic paracentesis?