20.
56 cubes. I'll explain later coz i dont have time now, just put this up to reserve this question

explanation:
consider the corners of the cube. The centre of the sphere, coincides with a corner. Hence we will make this the origin of an x,y,z box. Because of the symmetry of this situation we can just focus on the "quadrant" where x,y and z are positive and just find how many cubes satisfy the condition there and just multiply the result by 8.
How to find a valid cube:
Lemma: If we ensure that the corner of a unit cube that is furthest away from the origin is inside the sphere, then every point of that unit cube is inside the sphere.
Every cube in our quadrant can be identified by it's furthest most corner from origin (we'll call this "the corner"). The only possible such corners have x,y,z values of either 1,2 or 3. (not 0, since if x y or z are zero, then it isn't a "furthest away corner")
The Corners must satisfy this following inequality:


now

,

and

can only be 1,4 or 9. Hence we can turn the question into how many different ways can u add those numbers three times to get a result less than or equal to 9:
1+1+1 --- 1 way
1+4+4 --- 3 ways
4+1+1 --- 3 ways
total 7 ways and hence 7 different corners and hence 7 different cubes and hence 7*8=56 unit cubes altogether.