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: Chandler darling! Look, my date has finally arrived. I'd like you to meet Dennis Phillips.
Speaker 2: Congratulations.
Speaker 3: Thank you.
Speaker 1: Dennis is a dear old friend and a fantastic lover.
Speaker 3: Bravo Dennis thanks for pleasing my mother so.
Speaker 2: Oh, I'm so sorry I missed the ceremony, I was stuck at auditions.
Speaker 1: Oh yes, Dennis is directing a new Broadway show.
Speaker 4: I don't believe we've met, Joey Tribbiani.
Speaker 2: Dennis Phillips
Speaker 4: Wow, I've admired your work for years. You-you've done some really amazing stuff.
Speaker 2: Oh, thank you. Well if you'll excuse me, I'm gonna go get myself a drink. Be back in a moment.

SOLUTION: 2

PROBLEM: Speaker 1: ... with the double double double-jointed boy. Hey. So um, are you the professional guitar player?
Speaker 2: Yeah. I'm Stephanie.
Speaker 1: Right. My name was on there, but now it just says "carrot cake". So, um, so um, how many chords do you know?
Speaker 2: All of them.
Speaker 1: Oh yeah, so you know D?
Speaker 2: Yeah.
Speaker 1: Ok, do you know A minor?
Speaker 2: Yeah.
Speaker 1: Ok, do you know how to go from D to A minor?
Speaker 2: Yeah.
Speaker 1: Ok. Um, so does your guitar have a strap?
Speaker 2: No.
Speaker 1: Oh. Mine does. Stephanie knows all the chords.

SOLUTION: 1

PROBLEM: Speaker 1: Hey you guys.
Speaker 2: Hey Joe what's up?
Speaker 1: I had to get out of the apartment. Janine is like stretching all over the place. Y'know, everywhere I look she's like...
Speaker 2: I can see why that's hard to resist.
Speaker 1: I like her so much!
Speaker 3: Aw, I'm sorry sweetie that she doesn't feel the same way.
Speaker 1: I know. And she's so sweet. I just wanna feed her grapes and brush her hair.
Speaker 2: You are aware that she's not a monkey, right?
Speaker 4: I am so over Janine. I mean, yeah, at first I thought she was hot, but now she's like OLD NEWS!

SOLUTION:
1