There is no specific mention of Lord Shiva having a favorite number in Hindu mythology or scriptures.