calculate the number of two