You do not have to encounter the same pokemon in order for the chain to build.
Unrelated to the above, earlier this week I was consecutive fishing on Route 8 to try and get a shiny Clawitzer. Probably thirty in and I find a shiny qwilfish. I'm thinking, "okay, I'll catch you..." Thirty more...