# How to count the number of 1D arrays in a 2D array (Python)?

If I have a numpy 2D array, say:

```
a = [[1, 2, 3], [2, 3, 4], [3, 4, 5], [1, 2, 3]]
```

How do I count the number of instances of [1, 2, 3] in a? (The answer I'm looking for is 2 in this case)

Anthony Kong
answered question

### 2 Answers

## Have an answer?

JD