I am trying to replace loop iteration with a Lambda function to count, but I get the following error during compilation “No matching function for call to object of type ‘(la