calculating total people