Like and Dislike Buttons on Post with Counter – Only allow one click per post per user session

Working on a “Like” vs “Dislike” for blog post in WordPress. While all is working fine, the intention here is to make it work for guests and logged in users, but more importantly; to only allow one click (Like or Dislike) per post from the same user (trying to understand if I can use WordPress sessions here?).

How do I find the count of the current post?

Let’s say my custom post type is ‘story’.
I’ve got 20 stories published on my site.
So each post becomes: ‘story 1’, ‘story 2’, … ‘story 20’.
Thus, first post is ‘story 1’, and last post is ‘story 20’.
Now when I open one of these custom posts, I want to see the number. Example, if I open the ninth (published) post I want to see it mentions ‘story 9’.
I don’t want to hardcode it which I can do using ACF plugin. I want that data to be generated dynamically, just like how wordpress dynamically generates post id or slug.