All working it seems. Polya counting check works out each time