N queen, return total number