in reply to Count of split data

You're only incrementing by a count of 1 with $ct++, but what you want is to increment it by the number of elements in @arr. Do that like so:
$ct = $ct + scalar(@arr); # or $ct += @arr;

xoxo,
Andy