AMC 10B 2016 Problem 14

How many squares whose sides are parallel to the axes and whose vertices have coordinates that are integers lie entirely within the region bounded by the line y=\pi x, the line y=-0.1, and the line x=5.1 ?

Answer Choices
A. 30
B. 41
C. 45
D. 50
E. 57