buildscores patches

sed from bash on osx has a problem with newlines in replacement strings. tr can do the job more quickly and reliably.

also, count the player list