Two ways:
Either call my $numberofrows = $stHandle->rows(); after executing your statement, or bundle it all in to one statement with: my $numberofrows = $dbh->do("UPDATE .. ");
(Which works if you don't need to bind parameters)
Or even: my $numberofrows = $dbh->do($stHandle);
instead of execute.