counting number of people coming, and fixing links