<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def objectcount(data, key):
 """return the count of objects of key"""

    objkey = key.upper()
    return len(data.dt[objkey])