Section 1904. Contract to Provide Police Service.--Any township may contract with any municipal corporation to provide police services within the other municipal corporation. When a contract is made, the township police have all the powers and authority conferred by law on police in the municipal corporation which has contracted to secure police service.