Section 4 of an act of the General Assembly of Maryland of 1827, chapter 162, entitled 'An Act to appoint State wharfingers in the city of Baltimore, and to authorize the collection of wharfage in certain cases in said city' (Maryland Code of Public Local Laws, art. 4, sect. 945), provides as follows:——