3 or 5, depending on how you count.
Once for going 60 in a 35 zone, no ticket.
Once for going 40 in a 25 zone, got a ticket.
Once for driving without headlights at night, no ticket.
The two that might not count:
Once for being parked in a bad spot. My windshield was slightly foggy but I thought it would be ok to drive. Though when I turned toward the sun, the whole thing went white, so I pulled onto a side street and parked immediately once out of traffic.A curious cop got out and asked me what was up. I told him. No ticket.
Once a cop followed me for a mile or so and parked behind me when I got where I was going. He asked to see my ID, so I showed him. When I asked what was going on, he said they were looking for someone. No ticket. I guess the someone they were looking for drove a car that looked like mine.