Struggling to get Entry index number so I can output "X of Total Entries" I have a channel which has multiple entries in, I'm trying to output the current entry number, for example "1 out of 20 posts"

Currently this is what I am working with:

{% set total = craft.entries().section('spotlights').count() %}
{% set params = {section: 'spotlights', order: 'postDate desc', limit: null} %}
{% set entry_prev = entry.getPrev(params) %}
{% set entry_next = entry.getNext(params) %}

&lt;section class="page-nav-wrapper"&gt;
  &lt;div class="container"&gt;
    &lt;div class="page-nav"&gt;
      {% if entry_prev %}
      &lt;div class="previous-page"&gt;
        &lt;a href="{{entry_prev.url}}"&gt;Previous&lt;/a&gt;
      &lt;/div&gt;
      {% else %}
      &lt;div class="previous-page"&gt;
        &lt;a class="disabled"&gt;Previous&lt;/a&gt;
      &lt;/div&gt;
      {% endif %}
      &lt;div class="entry-count"&gt;ENTRY NUMBER HERE of {{ total }}&lt;/div&gt;
      {% if entry_next %}
      &lt;div class="next-page"&gt;
        &lt;a href="{{entry_next.url}}"&gt;Next&lt;/a&gt;
      &lt;/div&gt;
      {% else %}
      &lt;div class="next-page"&gt;
        &lt;a class="disabled"&gt;Next&lt;/a&gt;
      &lt;/div&gt;
      {% endif %}
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/section&gt;


I have my next and previous links working as well as the total entries in the section, I just can't work out how to get the current entry in the section. Any help would be appreciated.

I have tried a few different solutions on here but they all seem to be outdated.

Thanks.
I don't know if this is the best solution or if it will even work, but this would be my first try.

{% for spotlight in craft.entries().section('spotlights').all() %}
  {# Check to see if the title of the "spotlight" matches the current entry's title #}
  {% if spotlight.title == entry.title %}
    &lt;div class="entry-count"&gt;{{ loop.index }} of {{ total }}&lt;/div&gt;
  {% endif %}
{% endfor %}