updated share counter script