added count and interval