docstr: The index of the task execution attempt.
  
  This property returns 0 for the first attempt to execute the task.
  If the @retry decorator is used and the first attempt fails, this
  property returns the number of times the task was attempted prior
  to the current attempt.
  
  Returns
  -------
  int
      The retry count.
docstr_tok: ["The","index","of","the","task","execution","attempt",".","This","property","returns","0","for","the","first","attempt","to","execute","the","task",".","If","the","@","retry","decorator","is","used","and","the","first","attempt","fails",",","this","property","returns","the","number","of","times","the","task","was","attempted","prior","to","the","current","attempt",".","Returns","--","--","--","-","int","The","retry","count","."]
code: def retry_count(self) -> int:
      """
      The index of the task execution attempt.
  
      This property returns 0 for the first attempt to execute the task.
      If the @retry decorator is used and the first attempt fails, this
      property returns the number of times the task was attempted prior
      to the current attempt.
  
      Returns
      -------
      int
          The retry count.
      """
      return self._retry_count
  
imports: from collections import namedtuple
  import os
  from typing import Any, Optional
  from metaflow.metaflow_config import TEMPDIR
label_desc: Use image node_id 11 for calling the Current obj's underlying member method code with example usage: obj.retry_count() and returns: self