A justice of the peace, where there is a county ranger, shall not have authority to do any act concerning estrays, except to take the information from the taker up and to issue the summons for the appraisers; and he shall be entitled to the same fee for such service as the ranger, to be collected and paid over by the ranger; but if there be not a ranger, a justice of the peace may perform all the duties.