estimate event count in ReQL