plugin for counting multiple records and output time-series value