static PageViewCount buildPageViewCount(WindowPane<String, Integer> windowPane) {
    String memberId = windowPane.getKey().getKey();
    long timestamp = Long.valueOf(windowPane.getKey().getPaneId());
    int count = windowPane.getMessage();

    return new PageViewCount(memberId, timestamp, count);
  }
Example code to implement window-based counter
samza-test/src/main/java/org/apache/samza/example/AppWithGlobalConfigExample.java