add count and tmp params