In the following sentence:
"I have lost count of the number of times eaten spaghetti"
The word count refers to a record.
That is, count is similar in meaning to a book in which things are written.
Consider the following examples
- "I have lost the ledger which had last years taxes"
- The computer records of which person has which book checked-out from the library are gone.
- "I have lost count of the number of times eaten spaghetti"
Just because you have forgotten where the keys for your car are located does not mean that your car keys cease to exist.
Just because you have lost count of the number of times you have eaten spaghetti, does not mean that you have never eaten spaghetti before.
It would not make sense to say,
"I have lost the number of times I have washed my clothes."
The number of times something happens cannot be lost.
The number of times you have hit your thumb exists whether you remember it or not.
I have lost my memory of how many times I have hit my thumb with a hammer.