Get the correct value of the total when a stream is returned.
Create the correct object on the select query.
Added the method runStream.