Should not it be all_user_count = len(**user**_map) ? Instead of item_map?
Should not it be all_user_count = len(user_map) ? Instead of item_map?