How to specify in a check_plugins data as a counter

Look at the check API documentation available through the Help menu of your site. The method is get_rate().