How do I get the last build number in Jenkins?

How do I get the last build number in Jenkins?

Below is the Jenkins API to get complete build details:

http://jenkins:8080/job/JOB_NAME/lastBuild/testReport/api/json?pretty=true