def followers_and_retweets_of_tweet(tweet):
    """
    Function that retrieves number of followers of account 
    that posted tweet and the number of times that tweet was
    retweeted

    Parameters
    ----------

       tweet: dict
          data for individual tweet

    Returns
    -------
       followers: int
          numbers of followers
       retweets: int
          number of retweets
    """

    # search tweet dictionary for follower count
    followers = 0
    if 'user' in str(tweet):
        if 'followers_count' in str(tweet['user']):
            followers = tweet['user']['followers_count']

    # search tweet dictionary for retweet count
    retweets = 0
    if 'retweeted_status' in str(tweet):
        if 'retweet_count' in str(tweet['retweeted_status']):
            retweets = tweet['retweeted_status']['retweet_count']

    return followers, retweets