move count_domain_interval to domain.py
rename file monitor.py