add count and interval