@twosevenzero There is a bug in your code and it is not able to correctly count speakers in this case:

```
# hamlet.xml
<SPEECH>
<SPEAKER>CORNELIUS</SPEAKER>
<SPEAKER>VOLTIMAND</SPEAKER>
<LINE>In that and all things will we show our duty.</LINE>
</SPEECH>
```

I've found it by accident by comparing yours and my results. Your code cannot detect CORNELIUS. However I did not check if there are such SPEECHes in Macbeth.