Correction: There is no anime titled My Bride Is a Mermaid. You may be confusing it with Seto no Hanayome (English: My Bride Is a Mermaid), which aired in 2007 and has 26 episodes (+ 2 OVAs).
Gintama (mentioned in the original answer) is a completely different series with 367+ episodes across multiple seasons.