In any complaint before justices or any indictment in respect of any offence committed in or upon a fence erected between the lands of adjoining owners, it shall be sufficient to name one of such owners, and to state such fence to be the property of such owner and another or others, as the case may be.