I have a number of files in a directory on Linux, each of which contains a `version` line in the format: `#version x` (where x is the version number).

I'm trying to find a way to count the number of times each different version appears across all the files, and output something like:

```
#version 1: 12
#version 2: 36
#version 3: 2

```

I don't know all the potential versions that might exist, so I'm really trying to match lines that contain `#version`.

I've tried using things like `grep -c` - however that only gives the total of all lines containing `#version` - I can't find a nice way to split on the different version numbers.