Makes limit_plugin_logs a private method; Uses num_rows instead of count() for performance reasons;