def google_nest_count(style):
 nest_count = 0
 if ('margin-left' in style):
  nest_count = (int(style['margin-left'][:(-2)]) / GOOGLE_LIST_INDENT)
 return nest_count

def google_nest_count ( style ) : nest_count = 0 if ( 'margin-left' in style ) : nest_count = ( int ( style [ 'margin-left' ] [ : ( - 2 ) ] ) / GOOGLE_LIST_INDENT ) return nest_count
calculate the nesting count of google doc lists .