changes reflect stream.count() type error
latest changes for stream.count() fix
using ours