class Solution(object): def minOperations(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ count = 0 for n in nums: if n < k: count += 1 return count