new plugin: layer count

Counts the number of stacked layers. Works on mobile as well.

@jonatkins I tried a bounds check, but it's about 50 times slower than without the additional check. I guess pnpoly is already pretty fast (which was my guess, as it only does primitive maths).