The present invention belongs to the technical field of stationery, especially a pin-type writing and counting dual-purpose pen. Aiming at the existing problems of single function and no counting function, resulting in inconvenient use and low practicability, the following proposal is proposed, which includes: Pen holder, the bottom of one side of the inner pen holder is threadedly connected with an inner pen head, the top of the inner pen holder is provided with a writing button, the inside of the inner pen holder is elastically connected with a refill, and the top of the refill matches the writing button, and the bottom of the refill runs through The bottom of the inner nib extends to the outside of the inner nib. The outer side of the inner pen holder is provided with an outer pen holder. The present invention drives the second movable ring to move upward through the extrusion of the outer nib to block the light source. The photoelectric counter achieves the effect of automatic counting, and the outer pen holder is easy to disassemble, which improves the flexibility of use. At the same time, the writing function will not affect the counting. Its structure is simple, easy to use, and has strong practicability.