As often happens, either the countable form (' an attempt to do sth ') or the uncountable form (' the physical or mental energy that you need to do sth ') will work here. It is commonly the speakers choice.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.