How to determine the number of engines using SimConnect

Thank you, exactly what I was looking for.