You should try this :
$rowCount = 1;
echo $rowCount.' and ';
$rowCount = doStuff($rowCount);
$rowCount = doStuff($rowCount);
$rowCount = doStuff($rowCount);
Your doStuff()
method returns an int that is never used when you simply use the statement doStuff($rowCount);
without assignation.