Counting migrations