Measurement of square wave frequency using Arduino due

Dear Friends

                   I am very new to Embedded World especially Arduino and ARM micro controllers. I need to  measure square wave freq upto 8 Mhz using arduino. Can any one guide me in this regard.... Now I am able to measure upto 110 KHz. Here I am posting some results.

freq_result_2316.txt.zip