The number of times the sun will rise in two years will be measured in the number of days in those two years assuming that the location is far enough from the poles that the length of days and nights are relatively the same.
If neither of the two consecutive years is a leap year, then the number of times the sun will rise in two years will be:
2 (365) = 730 times
If one is a leap year, then the number of times the sun will rise in two years will be:
2 (365) + 1 = 731 times