How to check no of events pass in a second?

When someone say i get 1200 event per second how they determine?

Via the Logstash API https://www.elastic.co/guide/en/logstash/current/node-stats-api.html#event-stats

Or the Kibana Monitoring UI