<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inflect(word: str, count: int):
 """ Minimal inflection module. :param word: The word to inflect. :param count: The count. :return: The word, perhaps inflected for number. """

    if word in ['time', 'sentence']:
        return word if count == 1 else word + 's'
    elif word == 'was':
        return 'was' if count == 1 else 'were'
    else:
        return word + '(s)'