Add if-statement to oauth to pass if count is found