PUMaC 2020 Number Theory B Problem 8

Find the number of ordered pairs of integers (x, y) such that 2167 divides 3x^2 + 27y^2 + 2021 with 0 \leq x, y \leq 2166.