s/<I>/$count++;"<italic>"/eg; print $count || 0; [download]
In reply to Re: Counting the number of replaces by pingo in thread Counting the number of replaces by rsriram