What is the maximum number of times a worshipper can scratch themselves within a single unit (rak'ah) of prayer to avoid invalidation?

Permissible Acts during Prayer and Compulsory Cutting of Prayer