I counted down until I heard the thunder, 9 seconds, that put the centre of the storm at least 9 kilometres away.
As speed of sound is 344 m/s in air at sea level, that meant the lightning was about 3km far away, not 9.
Glad you're ok, though. Quite a great experience to go through... if you come alive out of it. ;-)