Not that rare in California. Off the top of my head: Sonoma, Napa, Mendocino, Santa Clara, San Mateo, Santa Cruz, Monterey, San Diego, San Bernardino, and Alameda counties all have cities of the same name. Seems rare in most other states though.
Also, in California: San Luis Obispo, Riverside, Sacramento, Fresno, Santa Barbara.