# Introduction In this challenge, we will write a function called `countNodes` that takes in the root of a complete binary tree and counts the number of nodes in the tree. The function should return the total count of nodes in the tree. We need to ensure that the function is exported correctly for it to pass the submission.
Click the virtual machine below to start practicing