Code Golf
petStorm
Given a list of positive integers, output how many items are strictly less than the previous item. The first item will never be counted.
### Test cases
|Input|Output|
|:---:|:----:|
|`[1 2 5 8 12 21 51]`|`0`|
|`[4 2 5 2 1 5 2]`|`4`|
|`[4 5 3 6 2 7 1 8]`|`3`|
|`[3 3 3 1 1 1]`|`1`|
Top Answer APL (Dyalog Unicode)
Adám
# [APL (Dyalog Unicode)], 6 [bytes](https://codegolf.meta.stackexchange.com/a/9429/43319 "When can APL characters be counted as 1 byte each?") [^SBCS^](https://github.com/abrudz/SBCS ".dyalog files using a single byte character set")

Anonymous tacit prefix function. The rare case of ASCII-only APL!

```apl
+/2>/+
```
[Try it online!][TIO-k84oab5w]

|Code|Explanation
|-|-
|`+`|the numbers
|`2>/`|pairwise greater-than
|`+/`|sum

[APL (Dyalog Unicode)]: https://www.dyalog.com/
[TIO-k84oab5w]: https://tio.run/##SyzI0U2pTMzJT///X1vfyE5f@3/ao7YJj3r7HnU1P@pd86h3y6H1xo/aJj7qmxoc5AwkQzw8g/@nKRgqGCmYKlgoGBopGBkqmBpypSmYgIWMgFJAEsw3VTBWMAOKmAPFLIAixmBoCIIA "APL (Dyalog Unicode) – Try It Online"

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.