def score_count(plays):
    """Score a play vector"""
    score = 0
    if not plays or len(plays) < 2:
        return score
    count = sum(plays)
    if count == 15 or count == 31:
        score += 2
    if plays[-1].get_rank() == plays[-2].get_rank():
        score += 2
    if len(plays) > 2 and plays[-2].get_rank() == plays[-3].get_rank():
        score += 4
    return score
