Updating readme and array count code in the api file.