Minecraft wiki entry for Durability, associated text: Breaking a block that breaks instantly counts as 0 uses.
Breaking other blocks counts as 1 use.
Tilling dirt or grass counts as 1 use.
Hitting a mob counts as 1 use.