It’s a very elegant idea! Just counting the number of 0 *bits* at the start of the hash. Bitcoin uses a more sophisticated and granular approach by interpreting the difficulty as a 256-bit number. Hashcash’s downside is that it gets less granular for each bit