Hi Ishtiaque,
We have an example that computes a similar metric, number of AST nodes, and finds the largest Java projects based on that metric. Take a look here:
This only shows the 5 largest, sorted by their size. Note that the output here is in millions of AST nodes, but you can easily change that.
Hope that helps!
- Robert