```
class Solution(object):
def findContentChildren(self, g, s):
"""
:type g: List[int]
:type s: List[int]
:rtype: int
"""
g, s = sorted(g), sorted(s)
i, j= 0, 0
while i != len(g) and j != len(s):
if s[j] >= g[i]:
i = i+1
j += 1
return i
```