Count the chunks a readable stream emits.