One that I've used in SQL Server, slightly adapted to using MySQL functions is:
CHAR_LENGTH(Column) - CHAR_LENGTH(REPLACE(Column,' ','')
That is - what's the length of the column, vs the length of the column if all of the spaces are removed? That should give you the number of spaces that were present.