pin counter