This request includes the check for a static Count() method as well as some additional unit tests

I'm not sure yet the best way to cherry pick the the changes using GitHub to only include the changes to WriteMethodGenerator.cs.