A program to estimate population sizes and migration rates