Counting configurations of limit cycles and centers