Driver Code
let n = 16 ; document . write ( " " + " " + n ) ; document . write ( " " + countPerfectDivisors ( n ) + " " ) ; n = 12 ; document . write ( " " + " " + n ) ; document . write ( " " + countPerfectDivisors ( n ) ) ;