23. The compensation, fines and expenses mentioned in section 22 may be recovered as if they were fined imposed by the Magistrate.