Python Count String In Array Python Initialize Matrix