Detailed Instructions: You are given a dialog between 2 or more individuals. You need to generate the number of the speaker (e.g. 1 for Speaker 1) who had the most lines in the dialog. If there is a tie, output the answer '0'.
Problem:Speaker 1: Hey Rach, wanna hear the new song I'm thinkin' of singing this afternoon? I wrote it this morning in the shower. 
Speaker 2: Ok. 
Speaker 1: I'm in the shower and I'm writing a song. Stop me if you've heard it. My skin is soapy, and my hair is wet, and Tegrin spelled backward is Nirget. 
Speaker 3: Uh, Rachel, sweetheart, could I see ya for a minute? 
Speaker 2: What's up? 
Speaker 3: F.Y.I.. I've decided to pay a professional musician to play in here on Sunday afternoons. Her name is Stephanie... something. She's supposed to be very good. 
Speaker 2: But what about Phoebe? 
Speaker 3: Rachel, it's not that your friend is bad, it's that she's so bad, she makes me want to put my finger through my eye into my brain and swirl it around. 
Speaker 2: Ok, ok, so you're not a fan, but I mean, come on, you cannot do this to her. 
Speaker 3: Uh-- 
Speaker 2: Oh, no no no no. Oh no no no no. I have to do this to her? 
Speaker 1: Lather, rinse, repeat, and lather, rinse, repeat, and lather, rinse, repeat, as needed.
Solution:
2