Counties and cities shall match their planning aid allocated by the director by an amount not less than twenty-five percent of the estimated cost of such planning. Any federal planning aid made directly to a county or city shall not be considered either a state or local contribution in determining local matching requirements. Counties and cities may meet their share of planning costs by cash and contributed services.