How can I write a function using fold\_left and not using fold to count the number of elements in a list?

I tried

```
 let rec count_elements l c =
     match l with
     |[] ->  c
     |h::t -> c = c+1

```

I don't believe this works, and I am not how to do this using fold\_left, any guidance would be appreciated