def _haab_count(day, month):
if day < <NUM_LIT:0> or day > <NUM_LIT>:<EOL><INDENT>raise IndexError("<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>i = HAAB_MONTHS.index(month)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ValueError("<STR_LIT>".format(month))<EOL><DEDENT>return min(i * <NUM_LIT:20>, <NUM_LIT>) + day<EOL>
Return the count of the given haab in the cycle. e.g. 0 Pop == 1, 5 Wayeb' == 365