  We improve the error terms of some estimates related to counting lattices
from recent work of L. Fukshansky, P. Guerzhoy and F. Luca (2017). This
improvement is based on some analytic techniques, in particular on bounds of
exponential sums coupled with the use of Vaaler polynomials.
