TASK DEFINITION: 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: May I help you?
Speaker 2: Yes. We're here to make a rather sizeable donation to the children.
Speaker 1: Well, any contribution, large or small, is always appreciated.
Speaker 2: Well, I think you're gonna appreciate it the crap out of this one.
Speaker 1: Well, this is very generous!
Speaker 2: And we don't want any recognition. This is completely anonymous.
Speaker 3: Completely anonymous. From two kind strangers.
Speaker 2: Mr. X and Phoebe Buffay.
Speaker 1: Well if you like, we can include your names in our newsletter.
Speaker 3: Not necessary.
Speaker 2: Buffay is spelled B-U-F-F-A-Y.
Speaker 3: And "X" is spelled uhm... "Mike Hannigan".
Speaker 1: Right. Well, on behalf of the children: thank you both very much.
Speaker 2: Sure, I so glad we did this. It feels so good!
Speaker 3: It does. It feels really good!
Speaker 2: Oh, look! And we get these free t-shirts!
Speaker 1: Oh, actually, that's the shirt I wore to the gym.
Speaker 2: Mhm... it's moist.

SOLUTION: 2

PROBLEM: Speaker 1: Hey!
Speaker 2: Hi, Bubbles. Manly. Well, I just thought I would drop by and let you know how it went with Joey.
Speaker 1: You told her?!
Speaker 3: She pulled it out of me! She's like a conversational wizard! How'd it go?
Speaker 2: Well, you were wrong, he doesn't like me!
Speaker 3: What?
Speaker 2: Yeah! How would you like it if I sent you to Lee Majors' house and told you that he liked you, and you went down there and you found out that he didn't like you? How would you feel?
Speaker 3: I don't think I'd care.
Speaker 2: Really? Lee Majors is hot!
Speaker 4: Hello?
Speaker 2: We're in the bathroom!
Speaker 4: Why?
Speaker 1: Because it's a relaxing and enjoyable time!
Speaker 4: What are you guys doing in here?
Speaker 3: Oh my God! A friend he's looking at differently, but it's wrong. It's Rachel!
Speaker 1: You like Rachel?!
Speaker 4: It's no big deal, okay? Phoebe and I talked about it. It's just a crush! It's going to go away! Dude, you gotta rearrange your bubbles! Oh!
Speaker 2: Mazel tov.
Speaker 5: Hey! Ross and I were looking for you! What are we all doing in here? Oh, my!
Speaker 3: Honey, cover it up with the boat!
Speaker 6: Hello?
Speaker 1: Yes we're all in here and we would love for you to join us!
Speaker 6: Well hey! What's going on? Ooh, cool boat--Oh, no. Hey, did you, did you tell them?
Speaker 5: No, I was waiting for you!
Speaker 2: Tell us what?
Speaker 5: We're having a girl.
Speaker 7: Oh, wow! Yay! Wow! Hooray! Oh, man!
Speaker 1: I'll...I'll get you later!

SOLUTION: 2

PROBLEM: Speaker 1: So your first whole weekend without Ben, what're you guys gonna do?
Speaker 2: Uh, we're going down to Colonial Williamsburg.
Speaker 3: Yeah, a woman I went to college with just became the first female blacksmith down there.
Speaker 4: Well, ya know, they're a little behind the times in Colonial Williamsburg.
Speaker 2: Think I better go before mommy starts weeping.
Speaker 4: Bye mommy.
Speaker 2,
Speaker 3: We love you. Bye.
Speaker 4: Have a good time. Ok, Ben.

SOLUTION:
4