How to Count Number of Data in MongoDB and Display to EJS

I get an output when I’m displaying it through console log, but when I try to display it through ejs I get no output. Is there any way I can display my .countDocument() result through ejs?

Here’s my code:

const getDocument = async() => {
try{
    const result = await Contact
    //to count only the services 
    .find({$or: [{subject:"Land Surveying"} , {subject:"Construction"} , {subject:"Consultation and Planning"} , {subject: "Architecture"}]})
    .countDocuments();
    console.log(result);
}catch(err){
    console.log(err);
}

}
getDocument();