factored out count interval to settings