updates pin count