And also that we may then unite in most humbly offering our prayers and supplications to the great Lord and Ruler of Nations and beseech him to pardon our national and other transgressions — to enable us all, whether in public or private stations, to perform our several and relative duties properly and punctually — to render our national government a blessing to all the people, by constantly being a Government of wise, just, and constitutional laws, discreetly and faithfully executed and obeyed — to protect and guide all Sovereigns and Nations (especially such as have shewn [sic] kindness onto us) and to bless them with good government, peace, and concord — To promote the knowledge and practice of true religion and virtue, and the encrease [sic] of science among them and us — and generally to grant unto all Mankind such a degree of temporal prosperity as he alone knows to be best.
Given under my hand at the City of New York
The third day of October in the year of our Lord 1789.
You want me to count the number of references to God? How about just the first line?