what size ground wire should i buy?
Get a copy of the local electric codes and/or contact a licensed professional in your area. The power company should also have the necessary information for what they require for a proper connection. This is not something you should DIY lightly.

This is also something where the work requires inspection from the local authorities. The power company will (rightly) refuse to connect your house if the electric installation isn't up to par.