Try using "Group BY" or "Memory Group By" step to get the total count of the rows. select the type as : Number of rows in the step and it will return you the total count.
You can read the wiki also : http://wiki.pentaho.com/display/EAI/Group+By
Hope this helps :)