I'm trying to execute this command on a remote computer using ssh.
ssh user@host "if [ $(ls -la /folder | wc -l) -eq 83 ]; then true; else false; fi;"
How can I make this part $(ls -la /folder | wc -l) to be executed on the remote computer instead of locally?