As the title says, and it's probably very easy, but how can I count the number of minimum values in a vector, or more specific in a subset of vector:

Down below is an example:

```
a <- c(1,1,1,2,2)

```

so i want the output to be equal to 3 (since there are three 1's)