count graph working