public long getNumberOfEvents() {
        return PrimeSelenium.executeScript("return " + getWidgetByIdScript() + ".getNumberOfEvents();");
    }
Gets number of events (items in the timeline).

@return The number of event in the timeline.
primefaces-selenium/primefaces-selenium-components/src/main/java/org/primefaces/selenium/component/Timeline.java