Implement a Python function that calculates the maximum number of times the word "nineteen" can be formed from a given input string.
Functionality Requirements:
The function should be named max_nineteen_count.
It should accept one parameter:
s (str): A string consisting of lowercase English letters.
The function should return an integer representing the maximum number of times the word "nineteen" can be formed using the letters in the input string.
Input/Output Requirements:
Input:
A single string (s) consisting exclusively of lowercase English letters (e.g., "nineeeeeen").
Output:
An integer value that indicates how many times the word "nineteen" can be constructed from the letters present in the input string.
Example:
Input: "nineteenineteen"
Output: 2
Input: "ninetenn"
Output: 1
Input: "abcd"
Output: 0
Implementation Instructions:
Write your solution in a file named /app/solution.py.
Ensure the function follows the specified signature: