css counterで要素の数を数える https://hai3.net/blog/css-counter/