<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def influx_count_(self, measurement):
 """ Count the number of rows for a measurement """

        try:
            q = "select count(*) from " + measurement
            self.start("Querying: count ...")
            datalen = self.influx_cli.query(q)
            self.end("Finished querying")
            numrows = int(datalen[measurement][datalen[measurement].keys()[0]])
            return numrows
        except Exception as e:
            self.err(e, self.influx_count_,
                     "Can not count rows for measurement")