Section 3. Tenants at sufferance in possession of land or tenements shall be liable to pay rent therefor for such time as they may occupy or detain the same.