Calling getCount() when body onload.