Answer based on context:

In the Spanish Netherlands Luxembourg still had 100,000 men; but he was outnumbered. Lacking sufficient supplies to mount an attack Luxembourg was unable to prevent the Allies garrisoning Dixmude and, on 27 September 1694, recapturing Huy, an essential preliminary to future operations against Namur. Elsewhere, de Lorge marched and manoeuvred against Baden on the Rhine with undramatic results before the campaign petered out in October; while in Italy, the continuing problems with French finance and a complete breakdown in the supply chain prevented Catinat's push into Piedmont. However, in Catalonia the fighting proved more eventful. On 27 May Marshal Noailles, supported by French warships, soundly defeated the Marquis of Escalona's Spanish forces at the Battle of Torroella on the banks of the river Ter; the French proceeded to take Palamós on 10 June, Gerona on 29 June, and Hostalric, opening the route to Barcelona. With the Spanish King threatening to make a separate peace with France unless the Allies came to his assistance, William III prepared the Anglo-Dutch fleet for action. Part of the fleet under Admiral Berkeley would remain in the north, first leading the disastrous amphibious assault on Brest on 18 June, before bombarding French coastal defences at Dieppe, Saint-Malo, Le Havre, and Calais. The remainder of the fleet under Admiral Russell was ordered to the Mediterranean, linking up with Spanish vessels off Cadiz. The Allied naval presence compelled the French fleet back to the safety of Toulon, which, in turn, forced Noailles to withdraw to the line of the Ter, harassed en route by General Trinxería's miquelets. By shielding Barcelona in this way the Allies kept Spain in the war for two more years.

How many of France's coastal defenses did Barkeley attack?
4