1 verses of the Geneva Bible have both "if" and "sand".
Psalms 139:18 If I should count them, they are moe then the sand: when I wake, I am still with thee.
In other translations: KJV WEB ASV YLT Darby Webster DRC