Device for counting stitches in a piece of knitting, consisting of a holder (5) with sensor (9), this sensor being connected to an electronic processing circuit which is arranged in the holder (5) and which has a visual display means (6) which holder (5) is provided with guiding means being either stationary (10) or mechanical (30).