def spacesCount(text):
            return len(text) - len(text.rstrip(' '))
def __verify_arguments(self):
        """!
        @brief Verify input parameters for the algorithm and throw exception in case of incorrectness.