move config to one class.
rename file
add
add count and test.
add test