add samples counter